package com.wind.taobao.api.trade.itemprop.rest
{
	import com.wind.taobao.api.trade.itemprop.convert.PropValueConvert;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	import mx.collections.ArrayCollection;

	/**
	 * taobao.itempropvalues.get Response
	 * @author fxy
	 *
	 */
	public class ItemPropValuesGetResponse extends TaobaoResponse
	{
		public var last_modified:String;
		public var propValues:ArrayCollection;

		public function ItemPropValuesGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initPropValues();
		}

		private function initPropValues():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("last_modified"))
					last_modified=body["rsp"]["last_modified"];
				if (body["rsp"].hasOwnProperty("prop_values"))
					propValues=PropValueConvert.convertPropValues(body["rsp"]["prop_values"]);
			}
		}

	}
}